import config from "@/config"
import http from "@/utils/request"

export default {
	log: {
		list: {
			url: `${config.API_URL}/finance-log/list-page`,
			name: "获取财务明细列表",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		action: {
			url: `${config.API_URL}/finance-log`,
			name: "用户操作",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		status: {
			url: `${config.API_URL}/finance-log/withdraw`,
			name: "审核余额提现",
			put: async function (params) {
				return await http.put(this.url, params);
			}
		},
		remark: {
			url: `${config.API_URL}/finance-log/remark`,
			name: "更改备注",
			put: async function (params) {
				return await http.put(this.url, params);
			}
		}
	}
}
